<?php
namespace app\mobile\model;

use think\Model;


class Users extends Model
{
    public function getPositionTextAttr($value,$data)
    {
        $position=['1'=>'员工','2'=>'组长','3'=>'部门经理','4'=>'待定'];
        return $position[$data['position']];
    }
}